import instance from "@/utils/http";

export const loginAPI = (data) => {
    return instance({
        method: 'POST',
        url: '/login',
        data: data
    })
}

export const registerAPI = (data) => {
    return instance({
        method: 'POST',
        url: '/register',
        data: data
    })
}